home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 April / macformat-023.iso / Shareware City / Control Strip / ControlStripShell ƒ / CSShell.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-09-04  |  1.0 KB  |  30 lines  |  [TEXT/MMCC]

  1. #pragma once
  2.  
  3. #define kPopupMenuID        256    // STR# ID
  4. #define kArrowPictID        256 // arrow pict ID
  5. #define kHelpStringIndex    1    // index of the help string
  6. #define    kIconWidth            16    // width of the ics8
  7.  
  8. #define width(rect)            ((rect).right - (rect).left)    // macro for rect width
  9. #define height(rect)        ((rect).bottom - (rect).top)    // macro for rect height
  10. #define PicFrame(what)        ((**MyGlobals.what).picFrame)    // macro for picture frame rect
  11. #define pstrcpy(dst, src)    (BlockMove((src), (dst), (src)[0] + 1))
  12.  
  13. #include <Icons.h>
  14. #include <ControlStrip.h>
  15.  
  16. typedef struct
  17. {
  18.     Handle            iconSuite;
  19.     MenuHandle        myMenuH;
  20.     Handle            myStrings;
  21.     PicHandle        myArrowPict;
  22. } MyGlobals, *MyGlobalPtr, **MyGlobalHandle;
  23.  
  24. void DoCSTrack(MyGlobalHandle myGlobals, Rect *statusRect, GrafPtr statusPort);
  25. void DoCSDraw(MyGlobalHandle myGlobals, Rect *statusRect, GrafPtr statusPort);
  26. unsigned long DoCSTickle(MyGlobalHandle myGlobals, Rect *statusRect, GrafPtr statusPort);
  27. void DoCSClose(MyGlobalHandle myGlobals);
  28. long DoCSInit(void);
  29. void DoCSClick(MyGlobalHandle myGlobals, const Rect    *statusRect);
  30.